How to create a random number using JavaScript